package com.c.c_common.util;

import android.content.Context;
import android.content.SharedPreferences;


public class Account {
    private static final String KEY_IS_FIRST_OPEN = "KEY_IS_FIRST_OPEN";
    public static boolean isFirstOpen = false;

    public static String AF_DEV_KEY = "twvyk45GhoME3TJGfstft9";
    public static String APP_BASE_URL = "twvyk45GhoME3TJGfstft9";

    public static void save(Context context) {
        SharedPreferences sp = context.getSharedPreferences(Account.class.getName(), Context.MODE_PRIVATE);
        sp.edit()
                .putBoolean(KEY_IS_FIRST_OPEN, isFirstOpen)
                .apply();
    }

    public static void loader(Context context) {
        SharedPreferences sp = context.getSharedPreferences(Account.class.getName(), Context.MODE_PRIVATE);
        isFirstOpen = sp.getBoolean(KEY_IS_FIRST_OPEN, true);
    }


}
